Cocktail Help Reference
Repository<T> Class Members
See Also  Properties  Methods  Send Feedback
Cocktail Assembly > Cocktail Namespace : Repository<T> Class


Glossary Item Box

The following tables list the members exposed by Repository<T>.

Public Constructors

 NameDescription
Public ConstructorRepository<T> ConstructorCreates a new repository.  
Top

Public Properties

 NameDescription
Public PropertyDefaultQueryStrategyGets or sets the repository's default query strategy.  
Top

Protected Properties

 NameDescription
Protected PropertyEntityManagerReturns the EntityManager used by this repository.  
Top

Public Methods

 NameDescription
Public MethodAllAsyncOverloaded. Retrieves all entities with the repository's default query strategy.  
Public MethodAllInCacheRetrieves all entities from the cache.  
Public MethodAllInDataSourceAsyncOverloaded. Retrieves all entities from the back-end data source.  
Public MethodCountAsyncReturns the number of entities.  
Public MethodCountInCacheReturns the number of entities in the cache.  
Public MethodDeleteOverloaded. Marks the specified entity as to be deleted.  
Public MethodExistsInCacheReturns true if the entity matching the provided key is found in the cache.  
Public MethodFindAsyncOverloaded. Retrieves one or more entities matching the provided expression with the repository's default query strategy.  
Public MethodFindInCacheOverloaded. Retrieves one or more entities matching the provided expression from the cache.  
Public MethodFindInDataSourceAsyncOverloaded. Retrieves one or more entities matching the provided expression from the back-end data source.  
Public MethodWithIdAsyncOverloaded. Retrieves the entity matching the provided key with the repository's default query strategy.  
Public MethodWithIdFromCacheRetrieves the entity matching the provided key from the entity cache.  
Public MethodWithIdFromDataSourceAsyncOverloaded. Retrieves the entity matching the provided key from the back-end data source.  
Top

Protected Methods

 NameDescription
Protected MethodGetFindBaseQueryReturns the base query used for Find/All operations. Override to use named queries instead of the default queries.  
Protected MethodGetFindQueryOverloaded. Returns the query to retrieve a list of entities.  
Protected MethodGetKeyQueryReturns the query to retrieve a single entity,  
Top

See Also

© 2013 All Rights Reserved.